import { post, get } from './common/request';

export function relationApiSaveType(data) {
    return post('relation/api/save/type', data);
}

export function relationApiDelType(id) {
    return post(`relation/api/del/type/${id}`);
}

export function relationListType(params) {
    return get('relation/list/type', params);
}

export function relationApiSavePoet(data) {
    return post('relation/api/save/poet', data);
}
export function relationApiDelPoet(data) {
    return post(`relation/api/del/poet/${id}`, data);
}
export function relationPagePoet(params) {
    return get('relation/page/poet', params);
}

export function relationCountRelationType() {
    return get('relation/count/relation/type');
}

export function relationListPoet(params) {
    return get('relation/list/poet', params);
}
